package com.foreknow.dao;

import com.foreknow.model.Guestbook;
import com.sun.xml.internal.messaging.saaj.packaging.mime.util.LineInputStream;

import java.sql.SQLException;
import java.util.List;

public interface GuestbookDao {
    /**
     * 添加留言
     * @param gb
     * @return
     */
    public boolean save(Guestbook gb) throws SQLException;


    /**
     * 查询所有留言信息
     * @return
     */
    public List<Object> queryAll();

    /**
     * 根据id删除
     * @param id
     * @return
     * @throws SQLException
     */
    public boolean deleteById(int id) throws SQLException;

    /**
     * 根据id查询某个留言信息
     * @param id
     * @return
     */
    public Guestbook getQueryById(int id);
}
